#ifndef VIDEOSENDER_H
#define VIDEOSENDER_H

#include <QObject>
#include <QImage>
#include <QUdpSocket>
#include <QByteArray>
#include "camerahandler.h"

//typedef struct
//{
//    int PackNum;
//    int packTaken;
//    char data[1024];
//}ImagePackage;

class videoSender : public QObject
{
    Q_OBJECT
public:
    explicit videoSender(QString ip,int port,QObject *parent = nullptr);




private:
    QUdpSocket * socket;
    QString ip;
    int port;


public slots:
    void sendeVideo(QByteArray byte);

signals:

};

#endif // VIDEOSENDER_H
